package com.yycx.common.security.passwordencoder;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 加密方式
 *
 * @author zyf
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PasswordEncoderEnum {
    /**
     * md5
     */
    MD5("md5"),
    BCRYPT("bcrypt");

    PasswordEncoderEnum(String code) {
        this.code = code;
    }

    @EnumValue
    private final String code;

    public String getCode() {
        return code;
    }
}
